#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.sympy import *

while True:
    with display_block('Entradas'):
        d = One * oneof(2, 3, 6, sqrt(3), 2 * sqrt(3), 3 * sqrt(3))
        mod = d

    with display_block('Resultados'):
        correta = d ** 2 / 2
        coordenada = (d / sqrt(2)).expand()
        distr1 = d ** 2
        distr2 = (d ** 2 / sqrt(2)).expand()
        distr3 = d
        distr4 = d / 2
        distr5 = d * sqrt(2)

        if len(set([correta, coordenada, distr1, distr2, distr3, distr4, distr5])) == 7:
            break
